<%--
  Created by IntelliJ IDEA.
  User: ttxs
  Date: 2023/10/23
  Time: 14:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script src="${pageContext.request.contextPath}/js/test.js"></script>
    <script>
        test();
    </script>
</head>
<body>
<table>
    <tr>
        <td>id</td>
        <td>account</td>
        <td>realName</td>
        <td>birthday</td>
        <td>操作</td>
    </tr>
    <c:forEach var="item" items="${userList}">
        <tr>
            <td>${item.id}</td>
            <td>${item.account}</td>
            <td>${item.realName}</td>
            <td>${item.birthday}</td>
            <td>
                <a onclick="return confirm('确定删除吗？')" href="${pageContext.request.contextPath}/users/del/${item.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
